﻿using UnityEngine;
using System.Collections;

public class Point {

    public int x { get; internal set; }
    public int y { get; internal set; }

    public int score { get; internal set; }

    public Point parent { get; internal set; }

    public static Point defaultParent
    {
        get
        {
            return new Point(-1, -1);

        }
    }

    public Point(int x, int y)
    {
        this.x = x;
        this.y = y;
        this.parent = null;
        score = -1;
    }

    public void SetScore(int score)
    {
        this.score = score;
    }

    public bool Equals(Point p)
    {
        return (this.x == p.x && this.y == p.y);
    }

    public void SetParent(Point parent)
    {
        this.parent = parent;
    }

}
